package org.dromara.demo.domain.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;


import lombok.Data;
import org.dromara.demo.domain.JsDocument;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 文档管理视图对象 js_document
 *
 * @author zhu
 * @date 2025-02-10
 */
@Data
@AutoMapper(target = JsDocument.class)
public class JsDocumentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件url
     */
    private String url;

    /**
     * 所属工程
     */
    private String project;
    /**
     * 创建部门
     */
    private Long createDept;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建者
     */
    private Long createBy;

    /**
     * 部门名
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
    private String userName;
    /**
     * 部门名
     */
    @Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "createDept")
    private String deptName;
}
